<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
    <th:block th:include="include :: header('专家去世确认列表')" />
</head>
<body class="gray-bg">
     <div class="container-div">
        <div class="row">
            <div class="col-sm-12 search-collapse">
                <form id="formId">
                    <div class="select-list">
                        <ul>
<!--                            <li>
                                <label>专家ID：</label>
                                <input type="text" name="zhuanjiaid"/>
                            </li>-->
                            <li>
                                <label>专家姓名：</label>
                                <input type="text" name="xingming"/>
                            </li>
<!--                            <li>
                                <label>单位代码：</label>
                                <input type="text" name="jigoudaima"/>
                            </li>-->
                            <li>
                                <label>所属单位：</label>
                                <input type="text" name="suoshudanwei"/>
                            </li>
                            <li>
                                <label>工作单位：</label>
                                <input type="text" name="gongzuodanwei1"/>
                            </li>
                            <li>
                                <label>身份证号：</label>
                                <input type="text" name="shenfenzhenghao"/>
                            </li>
                            <li>
                                <label>死亡(注销)标记：</label>
                                <input type="text" name="siwangbiaoji"/>
                            </li>
                            <li>
                                <label>死亡日期：</label>
                                <input type="text" class="time-input" placeholder="请选择死亡日期" name="siwangriqi"/>
                            </li>
                            <li>
                                <label>添加时间：</label>
                                <input type="text" class="time-input" placeholder="请选择添加时间" name="addtime"/>
                            </li>
                            <li>
                                <label>是否处理：</label>
                                <input type="text" name="shifouchuli"/>
                            </li>
                            <li>
                                <label>处理日期：</label>
                                <input type="text" class="time-input" placeholder="请选择处理日期" name="chuliriqi"/>
                            </li>
                            <li>
                                <label>是否有效：</label>
                                <input type="text" name="isvalid"/>
                            </li>
                            <li>
                                <a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i>&nbsp;搜索</a>
                                <a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i>&nbsp;重置</a>
                            </li>
                        </ul>
                    </div>
                </form>
            </div>

            <div class="btn-group-sm" id="toolbar" role="group">
                <a class="btn btn-success" onclick="$.operate.add()" shiro:hasPermission="system:zhuanjiaqushiqueren:add">
                    <i class="fa fa-plus"></i> 添加
                </a>
                <a class="btn btn-primary single disabled" onclick="$.operate.edit()" shiro:hasPermission="system:zhuanjiaqushiqueren:edit">
                    <i class="fa fa-edit"></i> 修改
                </a>
                <a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll()" shiro:hasPermission="system:zhuanjiaqushiqueren:remove">
                    <i class="fa fa-remove"></i> 删除
                </a>
                <a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="system:zhuanjiaqushiqueren:export">
                    <i class="fa fa-download"></i> 导出
                </a>
            </div>
            <div class="col-sm-12 select-table table-striped">
                <table id="bootstrap-table"></table>
            </div>
        </div>
    </div>
    <th:block th:include="include :: footer" />
    <script th:inline="javascript">
        var editFlag = [[${@permission.hasPermi('system:zhuanjiaqushiqueren:edit')}]];
        var removeFlag = [[${@permission.hasPermi('system:zhuanjiaqushiqueren:remove')}]];
        var prefix = ctx + "system/zhuanjiaqushiqueren";

        $(function() {
            var options = {
                url: prefix + "/list",
                createUrl: prefix + "/add",
                updateUrl: prefix + "/edit/{id}",
                removeUrl: prefix + "/remove",
                exportUrl: prefix + "/export",
                modalName: "专家去世确认",
                columns: [{
                    checkbox: true
                },
                {
                    field: 'id',
                    title: '主键',
                    visible: false
                },
/*                {
                    field: 'zhuanjiaid',
                    title: '专家ID'
                },*/
                {
                    field: 'xingming',
                    title: '专家姓名'
                },
/*                {
                    field: 'jigoudaima',
                    title: '单位代码'
                },*/
                {
                    field: 'suoshudanwei',
                    title: '所属单位'
                },
                {
                    field: 'gongzuodanwei1',
                    title: '工作单位'
                },
                {
                    field: 'shenfenzhenghao',
                    title: '身份证号'
                },
                {
                    field: 'siwangbiaoji',
                    title: '死亡(注销)标记'
                },
                {
                    field: 'siwangriqi',
                    title: '死亡日期'
                },
                {
                    field: 'beizhu',
                    title: '备注'
                },
                {
                    field: 'addtime',
                    title: '添加时间'
                },
                {
                    field: 'shifouchuli',
                    title: '是否处理'
                },
                {
                    field: 'chuliriqi',
                    title: '处理日期'
                },
                {
                    field: 'isvalid',
                    title: '是否有效'
                },
                {
                    title: '操作',
                    align: 'center',
                    formatter: function(value, row, index) {
                        var actions = [];
                        actions.push('<a class="btn btn-success btn-xs ' + editFlag + '" href="javascript:void(0)" onclick="$.operate.edit(\'' + row.id + '\')"><i class="fa fa-edit"></i>编辑</a> ');
                        actions.push('<a class="btn btn-danger btn-xs ' + removeFlag + '" href="javascript:void(0)" onclick="$.operate.remove(\'' + row.id + '\')"><i class="fa fa-remove"></i>删除</a>');
                        return actions.join('');
                    }
                }]
            };
            $.table.init(options);
        });
    </script>
</body>
</html>